package my.interview;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2022/12/20 22:20
 */
public class HJ3_ {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        Set<Integer> collect1 = null;
        Integer[] input = new Integer[num];
        for (int i = 0; i < num; i++) {
            input[i] = scanner.nextInt();
        }
        collect1 = Arrays.stream(input).collect(Collectors.toSet());
        List<Integer> collect = new ArrayList<>(collect1).stream().sorted().collect(Collectors.toList());

        collect.forEach(System.out::println);
    }
}
